﻿<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" autoFlush="true"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
    <META HTTP-EQUIV="Expires" CONTENT="0">
    <%
        String serverName = request.getServerName();
        int serverPort = request.getServerPort();
        String serverPortStr = (serverPort == 80)?"":(":"+serverPort);
        String protocol = request.getProtocol();
        String protocolStr = "http";
        String contextPath = request.getContextPath();
        String htmlBase = protocolStr+"://"+serverName+serverPortStr+contextPath+"/";
     %>
    <base href="<%=htmlBase%>"/>
    <link rel="stylesheet" rev="stylesheet" href="qa/css/main.css" type="text/css" media="screen" />
    <title>
        <c:if test="${sharedfile != null}"><c:out value="${sharedfile.name}"/></c:if>
        <c:if test="${sharedfile == null}">
            <c:if test="${sfc != null}">
            <c:out value="${sfc.name}"/> 
            </c:if>
            <c:if test="${sfc == null}">
            中国大型机行业联盟 
            </c:if>
        </c:if> 
         - <tiles:getAsString name="ptitle"/>
    </title>
  </head>
  <body>
    <!--MR Navigation导航-->
  <div align="center">  
    <table align="center" border="0" cellpadding="0" cellspacing="0" width="900">
        <tr >
            <td>
                   <tiles:insert attribute="mrnavigation"/>
            </td>
       </tr>     
    </table>
    <!--QA Navigation-->
    <table align="center" border="0" cellpadding="0" cellspacing="0" width="900">
        <tr>
            <td>
                    <tiles:insert attribute="qanavigation"/>
            </td>
       </tr>     
    </table>
    <script type="text/javascript">
        var qachannel = "<tiles:getAsString name="qachannel"/>";
        function initQaChannel()
        {
            var qaChannelSpan;
            if("" != qachannel)
            {
                qaChannelSpan = document.getElementById(qachannel);
                if(qaChannelSpan != null)
                {
                    //var no = qaChannelSpan.no;
                    var no = qaChannelSpan.attributes['no'].nodeValue;
                    qaChannelSpan.className = "qachannelselected"+no;              
                    if(no > 1)
                    {
                        var preNo = no-1;
                        //if(no == 4)preNo = 2;
                        var preQaChannelSpan = document.getElementById("qachannel"+preNo);
                        preQaChannelSpan.className = "nobgqachannel"+no;
                    }
                    else
                    {
                    }
                }
            }
        }
        initQaChannel();
    </script>  
    <table align="center" border="0" cellpadding="0" cellspacing="0" width="900">
        <tr>
            <!-- left -->
            <td width="172" valign="top">
                <jsp:include page="login-fragment.jsp"/>
                <jsp:include page="sharedfile-rank-list.jsp"/>
            </td>
            <td width="5"></td>
            <!-- right -->        
            <td valign="top">
                <tiles:insert attribute="message"/>
                <!-- body -->
                <div>
                    <tiles:insert attribute="center"/>
                </div>
            </td>
        </tr>
    </table>
    <%-- --google ad start --%>
    <c:if test="${filesSize != null and filesSize >= filesSizePerPage}">
    <br>
    <div align="center">
        <script type="text/javascript"><!--
        google_ad_client = "pub-3370373040606812";
        /* MR_Iask_List 728x90, by William 08-8-30 */
        google_ad_slot = "7036340927";
        google_ad_width = 728;
        google_ad_height = 90;
        //-->
        </script>
        <script type="text/javascript"
        src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
        </script>
    </div>
    </c:if>
    <%-- --google ad end --%>    
    <br>
    <!--QA Footer-->
    <table align="center" border="0" cellpadding="0" cellspacing="0" width="900">
        <tr>
            <td>
                    <!--QA footer-->
                    <tiles:insert attribute="qafooter"/>
            </td>
       </tr>     
    </table>   
    <!--Mr Footer-->
    <br>
    <table align="center" border="0" cellpadding="0" cellspacing="0" width="900">
        <tr>
            <td>
                <!--MR footer-->            
                <tiles:insert attribute="mrfooter"/>
            </td>
       </tr>     
    </table>
   </div> 
  </body>
</html>
